package com.crud.generator.template;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.List;

/**
 * 前端模板中的单表描述。
 */
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FrontendTableDescriptor {

    private String className;

    private String tableName;

    private String displayName;

    private String comment;

    private boolean hasCompositePrimaryKey;

    @Builder.Default
    private List<FrontendColumnDescriptor> columns = Collections.emptyList();
}
